/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"4D2324EE-C560-45EF-9A78-AAB98FC9859F",variableType:8}
 */
var f_importe_desde = null;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"51D7025E-EFA9-4A94-A816-9FCEE1A9A45B",variableType:8}
 */
var f_importe_hasta = null;

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"0924E360-B312-4354-9279-21FC94D3E66F"}
 */
function imprimir(event) 
{
	if(tipo == globals.zconf_tipo_remito_interno)
		forms.remitos_int_imp_ind.controller.showPrintPreview(true);
	else
		forms.remitos_imp_ind.controller.showPrintPreview(true);
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"D2FABD03-1D9E-4986-86BF-20AAE646E7B4"}
 */
function iniciar(firstShow, event) 
{

}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"A12B076F-43A0-4832-826A-477CBE39D5B3"}
 */
function ver_preimpreso(event) {
	forms.remitos_imp_preimp_ind.controller.showPrintPreview(true);
}

/**
 * @properties={typeid:24,uuid:"40416963-AE3E-467C-AE0B-48E17E08146A"}
 */
function imprimirPDF() {
	if(tipo == globals.zconf_tipo_remito_interno)
	{
		forms.remitos_int_imp_ind.controller.loadRecords(rem_cabecera_id)
		globals.metodoPdf('remitos_int_imp_ind', 'ordenes_compra', false)
	}
	else
	{
		forms.remitos_imp_ind.controller.loadRecords(rem_cabecera_id)
		globals.metodoPdf('remitos_imp_ind', 'ordenes_compra', false)
	}
	
}
